
#include "StatePopUp.h"
#include "StateIntro.h"
#include "StateGame.h"
#include "StateMainMenu.h"
#include "StateManager.h"
#include "InputManager.h"

//#include "StateShop.h"

void StateIntro::exit()
{
}

void StateIntro::loadContent()
{
}

void StateIntro::unloadContent()
{
}

void StateIntro::enter()
{    
    m_eState = fadein;
}

void StateIntro::update(float dt)
{
    return;
    
    switch(m_eState)
    {
        case fadeout:
            if(!StateManager::instance().isFading())
            {
                StatePopUp::instance().popupInfo("Mensajillo de varias lineas a ver como se parte");
                m_eState = show;
            }
            break;
        case show:
            StatePopUp::instance().popupConfirm("Otro mensajillo");
            StateManager::instance().fadeIn();
            m_eState = fadein;
            break;
        case fadein:
            if(!StateManager::instance().isFading())
            {
                StateManager::instance().setState(StateMainMenu::instance());
                //StateManager::instance().setState(StateShop::instance());
            }
            
            break;
    }
}

void StateIntro::render()
{
}
